//
//  BABaseModel.m
//  BAClassUtil
//
//  Created by pdc on 2017/9/30.
//  Copyright © 2017年 RealsCloud. All rights reserved.
//

#import "BABaseModel.h"
#import "NSObject+BAModel.h"

@implementation BABaseModel
+(instancetype )modelWithDictionry:(NSDictionary *)dict
{
    return [[self class] modelWithObject:dict];
}

+(instancetype )modelWithJson:(NSString *)json
{
    return [[self class] modelWithObject:json];
}

+(instancetype )modelWithObject:(id )object
{
    BABaseModel *obj = [[self class] new];
    [obj modelWithObject:object];
    return obj;
}
@end
